package com.wlyuan.open.controller;

import com.wlyuan.admin.api.IExcelTemplateService;
import com.wlyuan.admin.vo.ExcelTemplateDetailVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "导入")
@RequestMapping("/api/import")
@RestController
public class OpenImportController {

    @DubboReference(check = false)
    private IExcelTemplateService excelTemplateService;

    @ApiOperation("获取模板")
    @GetMapping("/templates")
    public List<ExcelTemplateDetailVO> getByContractNo() {
        return excelTemplateService.search();
    }

}
